<html>
    <head><title>login</title>
    </head>
    <body>
        <h2>用户登陆</h2>
        <form method="POST" action="">
            <table>
                {% if error_msg %} <tr><td></td><td><font color="red">{{ error_msg }}</font></td></tr> {% endif %}
                <tr><td>用户名:</td><td><input name="username" type="text" /></td></tr>
                <tr><td>密码:</td><td> <input name="password" type="password" /> </td></tr>
                <tr><td></td><td> <input name="submit" type="submit" value="login"/> </td></tr>
            </table>
        </form>
    </body>
</html>
